﻿using CMS.DataAccess;

namespace CMS.Model
{
    [MyTableName("ScheduleTemplate")]

    public class ScheduleTemplateModel : BaseModel
    {
        [MyForeign(typeof(DseClassModel), nameof(DseClassModel.ClassName))]
        public string DseClass { get; set; }
        public DayOfWeek WeekDay { get; set; }
        [MyForeign(typeof(CourseModel), nameof(CourseModel.CourseName))]
        public string Course { get; set; }
        [MyForeign(typeof(UserModel), nameof(UserModel.UserName))]
        public string Teacher { get; set; }
        public string Color { get; set; }
        public int Seq { get; set; }
        public string Optional { get; set; } = "N";
        public string GroupClass { get; set; } = "N";

    }
}
